<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="./css/main.css">
  <link rel="stylesheet" href="./css/iconfont/iconfont.css">
  <title>对话名师</title>
</head>

<body>
  <div class="toclass__banner">
    <img src="./img/ms.jpg" alt="">
  </div>
  <div class="dialogue-nav">
    <ul class="clear" id="topTab">
      <li class="on" id="0">专业技能</li>
      <li id="1">人文素养</li>
    </ul>
  </div>
  <div class="toclass__content" id="major">
    <ul class="list">
      <li>
        <div class="img">
          <img src="./img/banner.jpg" alt="">
          <i class="icon iconfont icon-bofang"></i>
        </div>
        <div class="font">
          <div class="font__title">
            Moon Gazing1
          </div>
          <div class="font__subtitle">
            Eula Chambers
          </div>
        </div>
      </li>
      <li>
        <div class="img">
          <img src="./img/banner.jpg" alt="">
          <i class="icon iconfont icon-bofang"></i>
        </div>
        <div class="font">
          <div class="font__title">
            单位工程施工组织设计编写指南
          </div>
          <div class="font__subtitle">
            Arthur Wilkerson
          </div>
        </div>
      </li>
      <li>
        <div class="img">
          <img src="./img/banner.jpg" alt="">
          <i class="icon iconfont icon-bofang"></i>
        </div>
        <div class="font">
          <div class="font__title"></div>
          <div class="font__subtitle"></div>
        </div>
      </li>
    </ul>
  </div>
  <div class="toclass__content" id="humanity" style="display: none">
    <ul class="list">
      <li>
        <div class="img">
          <img src="./img/banner.jpg" alt="">
          <i class="icon iconfont icon-bofang"></i>
        </div>
        <div class="font">
          <div class="font__title">
            Moon Gazing
          </div>
          <div class="font__subtitle">
            Eula Chambers
          </div>
        </div>
      </li>
      <li>
        <div class="img">
          <img src="./img/banner.jpg" alt="">
          <i class="icon iconfont icon-bofang"></i>
        </div>
        <div class="font">
          <div class="font__title">
            单位工程施工组织设计编写指南
          </div>
          <div class="font__subtitle">
            Arthur Wilkerson
          </div>
        </div>
      </li>
      <li>
        <div class="img">
          <img src="./img/banner.jpg" alt="">
          <i class="icon iconfont icon-bofang"></i>
        </div>
        <div class="font">
          <div class="font__title"></div>
          <div class="font__subtitle"></div>
        </div>
      </li>
    </ul>
  </div>
  <script src="./js/jquery-3.3.1.min.js"></script>
  <script>
    $("#topTab li").click(function (e) {
      let id = $(this).attr("id");
      if (id == 0) {
        $("#major").show();
        $("#humanity").hide();
      };
      if (id == 1) {
        $("#humanity").show();
        $("#major").hide();
      };
      $(this).addClass("on").siblings().removeClass("on");
    })
  </script>
</body>

</html>